package com.ctrip.ec.api.mobile.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by jiangzy on 2018/10/17.
 */
@Component
@ConfigurationProperties(prefix = "alipay")
//@PropertySource("classpath:alipay.properties")
@PropertySource(value= "classpath:alipay.properties",ignoreResourceNotFound=false,encoding="UTF-8",name="alipay.properties")
public class AlipayConfig {

    public  AlipayConfig(){
        System.out.println("alipay init");
    }
    // 商户ID
    private String appId ;

    // 异步回调地址
    private String notifyUrl;

    // 请求网关地址
    private String gatewayUrl;

    // 支付宝公钥
    private String alipayPublicKey ;
    private String rsaPrivateKey ;
    private String pid ;
    private String key;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getGatewayUrl() {
        return gatewayUrl;
    }

    public void setGatewayUrl(String gatewayUrl) {
        this.gatewayUrl = gatewayUrl;
    }

    public String getAlipayPublicKey() {
        return alipayPublicKey;
    }

    public void setAlipayPublicKey(String alipayPublicKey) {
        this.alipayPublicKey = alipayPublicKey;
    }

    public String getRsaPrivateKey() {
        return rsaPrivateKey;
    }

    public void setRsaPrivateKey(String rsaPrivateKey) {
        this.rsaPrivateKey = rsaPrivateKey;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
